package com.weishuang.monitor.employee.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 服务器基本信息表
 * </p>
 *
 * @author weishuang
 * @since 2021-03-23
 */
public class ServersBaseInfo implements BaseEntity,Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统类型 windows,linux
     */
    private String systemType;

    /**
     * 操作系统版本 winserver,winhome,centos7等
     */
    private String systemVersion;

    /**
     * 启动时间
     */
    private String startTime;

    /**
     * cpu品牌
     */
    private String cpuInfo;

    /**
     * cpu物理个数
     */
    private Integer cpuPhysicalNum;

    /**
     * cpu物理核心个数
     */
    private Integer cpuPhysicalCoreNum;

    /**
     * cpu逻辑核心数
     */
    private Integer cpuLogicalCoreNum;

    public String getSystemType() {
        return systemType;
    }

    public void setSystemType(String systemType) {
        this.systemType = systemType;
    }

    public String getSystemVersion() {
        return systemVersion;
    }

    public void setSystemVersion(String systemVersion) {
        this.systemVersion = systemVersion;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getCpuInfo() {
        return cpuInfo;
    }

    public void setCpuInfo(String cpuInfo) {
        this.cpuInfo = cpuInfo;
    }

    public Integer getCpuPhysicalNum() {
        return cpuPhysicalNum;
    }

    public void setCpuPhysicalNum(Integer cpuPhysicalNum) {
        this.cpuPhysicalNum = cpuPhysicalNum;
    }

    public Integer getCpuPhysicalCoreNum() {
        return cpuPhysicalCoreNum;
    }

    public void setCpuPhysicalCoreNum(Integer cpuPhysicalCoreNum) {
        this.cpuPhysicalCoreNum = cpuPhysicalCoreNum;
    }

    public Integer getCpuLogicalCoreNum() {
        return cpuLogicalCoreNum;
    }

    public void setCpuLogicalCoreNum(Integer cpuLogicalCoreNum) {
        this.cpuLogicalCoreNum = cpuLogicalCoreNum;
    }

    @Override
    public Map<String, Object> toMap() {
        Map<String, Object> result = new HashMap<>();
        result.put("systemType",systemType);
        result.put("systemVersion",systemVersion);
        result.put("startTime",startTime);
        result.put("cpuInfo",cpuInfo);
        result.put("cpuPhysicalNum",cpuPhysicalNum);
        result.put("cpuPhysicalCoreNum",cpuPhysicalCoreNum);
        result.put("cpuLogicalCoreNum",cpuLogicalCoreNum);
        return result;
    }
}
